#!/bin/bash

MAX_PERCENT=90

percent=$(df / | tail -n 1 | awk '{print $5}' | sed 's/%//g')

if [ $percent -gt $MAX_PERCENT ]; then
   echo "" 
else
    curl http://127.0.0.1:8080/ > /dev/null 2>&1
fi

exit 0
